/**
 * 
 */
package t4j.generics;

import t4j.net.mindview.util.BasicGenerator;
import t4j.net.mindview.util.Generator;

/**
 * @author sz
 *
 * create time：2013-1-5
 */
public class BasicGeneratorDemo {

	public static void main(String[] args) {
		Generator<CountedObject> gen = BasicGenerator.create(CountedObject.class);
		
		for(int i =0 ; i< 5 ; i ++)
			System.out.println(gen.next());//创建对象并打印
	}
}
